const dateformat = require('dateformat')
const template = require('art-template')
const path = require('path')

// template.defaults.imports.log  = console.log
template.defaults.imports.dateformat  = dateformat
//默认模板根目录
template.defaults.root = __dirname
//默认模板扩展名
template.defaults.extname = '.art'

const html = template ( '05', {
    date: new Date()
})

console.log( html )